MediaCloud\Vendor\phpseclib\Crypt\RSA D

Total Complexity 362
Dependencies 8
Dependents 11
Total lines 3,139
Lines of code 1,654
Logical lines of code 1,117
Comment lines 1,091
Methods 59
Properties 24

Methods 59

Method Rating Maintainability Complexity Lines of code
_parseKey()
D
8
89 374
_convertPrivateKey()
D
22
22 245
loadKey()
C
33 23 102
createKey()
C
30 21 121
__construct()
A
41 14 50
_exponentiate()
A
41 12 58
setPublicKey()
A
48 10 35
_emsa_pkcs1_v1_5_encode()
A
48 9 34
_start_element_handler()
A
51 9 28
encrypt()
A
49 8 33
_rsaes_oaep_decrypt()
A
46 7 37
_emsa_pss_verify()
S
49 7 28
_convertPublicKey()
S
43 5 50
setHash()
S
58 7 17
setMGFHash()
S
59 7 15
decrypt()
S
51 6 26
_rsaes_pkcs1_v1_5_decrypt()
S
52 6 24
_rsaes_pkcs1_v1_5_encrypt()
S
51 6 24
_rsassa_pkcs1_v1_5_verify()
S
54 5 23
getPublicKeyFingerprint()
S
55 5 18
_rsassa_pss_verify()
S
56 4 19
_equals()
S
59 4 14
setPrivateKey()
S
61 4 13
sign()
S
63 4 11
verify()
S
63 4 11
_emsa_pss_encode()
S
54 3 19
_rsaes_oaep_encrypt()
S
54 2 20
_generateMinMax()
S
57 2 16
_rsavp1()
S
68 3 7
_rsasp1()
S
68 3 7
_rsadp()
S
68 3 7
_rsaep()
S
68 3 7
_extractBER()
S
66 3 7
_getPrivatePublicKey()
S
64 3 10
getPublicKey()
S
64 3 10
_data_handler()
S
70 3 6
__toString()
S
67 3 8
_rsassa_pkcs1_v1_5_sign()
S
63 2 11
getSize()
S
78 2 3
_stop_element_handler()
S
71 2 6
_mgf1()
S
64 2 9
_encodeLength()
S
67 2 7
_decodeLength()
S
64 2 9
_i2osp()
S
66 2 8
getPrivateKey()
S
64 2 10
setPassword()
S
82 1 3
getComment()
S
83 1 3
setComment()
S
82 1 3
setSignatureMode()
S
82 1 3
_blind()
S
66 1 8
setEncryptionMode()
S
82 1 3
_rsassa_pss_sign()
S
68 1 7
__clone()
S
74 1 5
_raw_encrypt()
S
73 1 5
_string_shift()
S
73 1 5
setPrivateKeyFormat()
S
82 1 3
setPublicKeyFormat()
S
82 1 3
setSaltLength()
S
82 1 3
_os2ip()
S
80 1 3